package com.example.hrmsaas.system.utils.vo;

import com.example.hrmsaas.system.entity.Loginfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)//父类中如果加入了@Data注解，所以要加上@EqualsAndHashCode注解
public class LoginfoVo extends Loginfo implements Serializable {
    private static final long serialVersionUID=1L;

    /**
     *
     *分页参数
     */
    private Integer page=1;
    private Integer limit=10;

    /**
     * 查询条件
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    private Date startDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    private Date endDate;


}
